package com.edu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 问答评论
 * </p>
 *
 * @author GongChengShi
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EduQuestionsComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 评论人id
     */
    @TableField("CUS_ID")
    private Integer cusId;

    /**
     * 问答id
     */
    @TableField("QUESTION_ID")
    private Integer questionId;

    /**
     * 评论内容
     */
    @TableField("CONTENT")
    private String content;

    /**
     * 是否最佳答案 0否1是
     */
    @TableField("IS_BEST")
    private Integer isBest;

    /**
     * 回复数量
     */
    @TableField("REPLY_COUNT")
    private Integer replyCount;

    /**
     * 点赞数
     */
    @TableField("PRAISE_COUNT")
    private Integer praiseCount;

    /**
     * 回复时间
     */
    @TableField("ADD_TIME")
    private LocalDateTime addTime;

    /**
     * 父级评论id
     */
    @TableField("COMMENT_ID")
    private Integer commentId;


}
